package com.dfbz.bigdata.modules.system.miniapp.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName tb_user_designerandpersonal
 */
@TableName(value ="tb_user_designerandpersonal")
@Data
public class UserDesignerandpersonal implements Serializable {
    /**
     * 设计师id
     */
    @TableId
    private Long userId;

    /**
     * 设计师姓名
     */
    private String userName;

    /**
     * 年龄
     */
    private Integer userAge;

    /**
     * 性别
     */
    private Integer userSex;

    /**
     * 手机号
     */
    private Long userPhone;

    /**
     * 邮箱
     */
    private String userEmail;

    /**
     * 设计师头像
     */
    private String userIcon;

    /**
     * 设计师描述
     */
    private String userText;

    /**
     * 上传认证信息
     */
    private String userrCertify;

    /**
     * 设计师所属风格
     */
    private String userDesignerStyle;

    /**
     * 密码
     */
    private String userPwd;

    /**
     * 等级标签
     */
    private String userLabel;

    /**
     * 积分
     */
    private Integer userMark;

    /**
     * 装修计算器的描述
     */
    private String userCountTable;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 修改人
     */
    private Long updateUser;

    /**
     * 是否删除
     */
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;

//    微信登录
    private String openId;

    private String wxUnionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserDesignerandpersonal other = (UserDesignerandpersonal) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getUserAge() == null ? other.getUserAge() == null : this.getUserAge().equals(other.getUserAge()))
            && (this.getUserSex() == null ? other.getUserSex() == null : this.getUserSex().equals(other.getUserSex()))
            && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone()))
            && (this.getUserEmail() == null ? other.getUserEmail() == null : this.getUserEmail().equals(other.getUserEmail()))
            && (this.getUserIcon() == null ? other.getUserIcon() == null : this.getUserIcon().equals(other.getUserIcon()))
            && (this.getUserText() == null ? other.getUserText() == null : this.getUserText().equals(other.getUserText()))
            && (this.getUserrCertify() == null ? other.getUserrCertify() == null : this.getUserrCertify().equals(other.getUserrCertify()))
            && (this.getUserDesignerStyle() == null ? other.getUserDesignerStyle() == null : this.getUserDesignerStyle().equals(other.getUserDesignerStyle()))
            && (this.getUserPwd() == null ? other.getUserPwd() == null : this.getUserPwd().equals(other.getUserPwd()))
            && (this.getUserLabel() == null ? other.getUserLabel() == null : this.getUserLabel().equals(other.getUserLabel()))
            && (this.getUserMark() == null ? other.getUserMark() == null : this.getUserMark().equals(other.getUserMark()))
            && (this.getUserCountTable() == null ? other.getUserCountTable() == null : this.getUserCountTable().equals(other.getUserCountTable()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getUserAge() == null) ? 0 : getUserAge().hashCode());
        result = prime * result + ((getUserSex() == null) ? 0 : getUserSex().hashCode());
        result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode());
        result = prime * result + ((getUserEmail() == null) ? 0 : getUserEmail().hashCode());
        result = prime * result + ((getUserIcon() == null) ? 0 : getUserIcon().hashCode());
        result = prime * result + ((getUserText() == null) ? 0 : getUserText().hashCode());
        result = prime * result + ((getUserrCertify() == null) ? 0 : getUserrCertify().hashCode());
        result = prime * result + ((getUserDesignerStyle() == null) ? 0 : getUserDesignerStyle().hashCode());
        result = prime * result + ((getUserPwd() == null) ? 0 : getUserPwd().hashCode());
        result = prime * result + ((getUserLabel() == null) ? 0 : getUserLabel().hashCode());
        result = prime * result + ((getUserMark() == null) ? 0 : getUserMark().hashCode());
        result = prime * result + ((getUserCountTable() == null) ? 0 : getUserCountTable().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", userAge=").append(userAge);
        sb.append(", userSex=").append(userSex);
        sb.append(", userPhone=").append(userPhone);
        sb.append(", userEmail=").append(userEmail);
        sb.append(", userIcon=").append(userIcon);
        sb.append(", userText=").append(userText);
        sb.append(", userrCertify=").append(userrCertify);
        sb.append(", userDesignerStyle=").append(userDesignerStyle);
        sb.append(", userPwd=").append(userPwd);
        sb.append(", userLabel=").append(userLabel);
        sb.append(", userMark=").append(userMark);
        sb.append(", userCountTable=").append(userCountTable);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}